home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
hostbbs2.zip
/
PCBTEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-11-24
|
1KB
|
74 lines
@echo off
e:
cd\boyan\scan
if exist pcbpass.txt del pcbpass.txt
if exist pcbfail.txt del pcbfail.txt
if %@ext[%1]==gif goto gif
if %@ext[%1]==zip goto zip
goto crc
:gif
if %2 == test goto gift
giftest %1 /C:GIFTEST.CNF > PCBPASS.TXT
type pcbpass.txt >> gifpass.log
if errorlevel == 25 goto badgif
if errorlevel == 20 goto badgif
if errorlevel == 10 goto end
if errorlevel == 1 goto badgif
goto end
:gift
echo Testing GIF file...
giftest %1 > PCBPASS.TXT
if errorlevel == 25 goto badgif
if errorlevel == 20 goto badgif
if errorlevel == 10 goto end
if errorlevel == 1 goto badgif
goto end
:badgif
beep
ren PCBPASS.TXT PCBFAIL.TXT
goto end
:zip
ptest %1 ptest.cfg
if %2 == test goto end
if exist pcbfail.txt goto end
:crc
if exist pcbpass.txt del pcbpass.txt
cd\boyan
goto end
proecho 2 ~Adding %@name[%1] to CRC database...
zdcsfc %1 %2 %3
goto end
:asta
goto end
pcbdesc /d %1 %3
if errorlevel == 1 goto skipit
proecho 2 ~~Found internal description for %1...
proecho 2 ~Imported to BBS...
:skipit
goto end
if exist PCBPASS.TXT type PCBPASS.TXT >> PCBPASS.LOG
if exist PCBFAIL.TXT type PCBFAIL.TXT >> PCBFAIL.LOG
if exist PCBFAIL.TXT move %1 h:\hold /q
if exist %3 type %3 >> f:\pcb\desc
Unknown command "proecho"▀
Unknown command "zdcsfc"
Unknown command "pcbdesc"
Unknown command "proecho"
Unknown command "proecho"
Invalid path "f:\pcb\desc"
:end
cd\boyan